$OpenBSD: patch-src_main_print-olympus_c,v 1.2 2017/01/14 17:15:51 ajacoutot Exp $

error: #error "Unable to determine endianness, aborting compilation!"

--- src/main/print-olympus.c.orig	Sun Jan  8 02:03:59 2017
+++ src/main/print-olympus.c	Sat Jan 14 18:07:17 2017
@@ -41,6 +41,16 @@
 #define inline __inline__
 #endif
 
+#ifndef __BYTE_ORDER
+#define __BYTE_ORDER _BYTE_ORDER
+#endif
+#ifndef __BIG_ENDIAN
+#define __BIG_ENDIAN _BIG_ENDIAN
+#endif
+#ifndef __LITTLE_ENDIAN
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+
 #define DYESUB_FEATURE_NONE		 0x00000000
 #define DYESUB_FEATURE_FULL_WIDTH	 0x00000001
 #define DYESUB_FEATURE_FULL_HEIGHT	 0x00000002
